//安装 npm i express
//导入 express
const express = require('express');
//导入 homeRouter
const homeRouter = require('./routes/homeRouter');
const adminRouter = require('./routes/adminRouter');

//创建服务对象
const app = express();
//设置
app.use(homeRouter);
app.use(adminRouter);

//监听端口 启动服务
app.listen(80, () => {
  console.log('服务已经启动....');
})